package com.k.exeorder;

public class Student {
    private String sid;
    private String sname;
    private static final Person p = new Person();

    static {
        System.out.println("Student static");
    }

    public Student() {
        System.out.println("Student Constructor");
    }

    public Student(String sid, String sname) {
        this.sid = sid;
        this.sname = sname;
    }

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    @Override
    public String toString() {
        return "Student{" +
                "sid='" + sid + '\'' +
                ", sname='" + sname + '\'' +
                '}';
    }

    public static void main(String[] args) {
/*
Person static
Person Constructor
Student static
Student Constructor
*/
        new Student();

    }
}
